
using System;

public static class TimeHelper
{
    static long ts_1970_1_7 = new System.DateTime(1970, 1, 1, 0, 0, 0, System.DateTimeKind.Utc).Ticks;
    public static long getTimeStampMS()
    {
        return System.DateTime.Now.Ticks - ts_1970_1_7;
    }

    public static long getTickInterval(int FPS)
    {
        return TimeSpan.TicksPerMillisecond / FPS;
    }
}
